From: umherirrender Date: Fri, 19 Jun 2015 16:04:56 +0000 (+0200) Subject: Use correct fields for LinkBatch on Special:NewPages X-Git-Tag: 1.31.0-rc.0~11037^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=1a7f3124c8ba94349d10c3c39378c8f5664be5c8;p=lhc%2Fweb%2Fwiklou.git Use correct fields for LinkBatch on Special:NewPages The special pages is using page_namespace/page_title for the display title, not rc_namespace/rc_title. Changing this avoids a extra query for the title when a page was moved and is listed on the special page with the hint 'rc-old-title' Change-Id: Ie1e4c9b93c00534543cf75bc3ea2c7e5f8d17460 --- diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index 899c7368fc..02e3325f6a 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -594,7 +594,7 @@ class NewPagesPager extends ReverseChronologicalPager { foreach ( $this->mResult as $row ) { $linkBatch->add( NS_USER, $row->rc_user_text ); $linkBatch->add( NS_USER_TALK, $row->rc_user_text ); - $linkBatch->add( $row->rc_namespace, $row->rc_title ); + $linkBatch->add( $row->page_namespace, $row->page_title ); } $linkBatch->execute();